@ECHO OFF

SET SRC_DIR=C:\Users\Wojtek\workspace\tr-game\src
SET DST_DIR=C:\Users\Wojtek\workspace\tr-game\src

protoc -I=%SRC_DIR% --java_out=%DST_DIR% %SRC_DIR%\game_protocol.proto

if %ERRORLEVEL% == 0 (
    echo Package generated successfully
) else if %ERRORLEVEL% == 1 (
    echo Failed to generate package
    PAUSE
) 
